home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Aug 89 / X0017-Re Opt⁄Debug Buildi-Aug89 < prev    next >
Encoding:
Text File  |  1989-08-22  |  2.8 KB  |  86 lines  |  [TEXT/GEOL]

  1. Item    6345688                         4-Aug-89        09:50
  2.  
  3. From:   LMILLETT                        Millett, Lonnie
  4.  
  5. To:     D2765                           Brainchild, E Corbett, S Rome, PRT
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Re: Opt/Debug Building…
  10.  
  11. Sean,
  12.  
  13. There are several ways of doing what you want to do.  With MacApp 2.0b9,
  14. MABuild was given several new default build configurations which can be found
  15. by looking at MABuildDefaults in MacApp's startup file.  For the sake of
  16. discussion here it is:
  17.  
  18. SET MABuildDefaults ∂
  19. "-p ∂
  20. -Asm '-case on' ∂
  21. -Debug ∂
  22. -Make -w ∂
  23. -Rez -rd ∂
  24. -Link '-srt -mf' ∂
  25. -Lib '-mf' ∂
  26. -CPlus '-d SHRT_MAX=32767 -d FALSE=0 -d TRUE=1' ∂
  27. -RenameFlag NmDbInUnPeRaTrTe 'Debug Files' ∂
  28. -RenameFlag S6Cq20FpNmDbInUnPeRaTrTe 'Debug /MacII+Sys6+' ∂
  29. -RenameFlag Te 'Non-Debug Files' ∂
  30. -RenameFlag InTe 'Non-Debug /Inspector' ∂
  31. -RenameFlag S6Cq20FpTe 'Non-Debug /MacII+Sys6+' ∂
  32. -RenameFlag NmDbInUnPeRaTrTeSm 'SADE Debug Files' ∂
  33. -RenameFlag S6Cq20FpNmDbInUnPeRaTrTeSm 'SADE Debug /MacII+Sys6+' ∂
  34. -RenameFlag TeSm 'SADE Non-Debug Files' ∂
  35. -RenameFlag S6Cq20FpTeSm 'SADE Non-Debug /MacII+Sys6+' ∂
  36. -RenameFlag InTeSm 'SADE Non-Debug /Inspector'"
  37. EXPORT MABuildDefaults
  38.  
  39. Yours is the simple case of wanting the 'Debug Files' configuration and the
  40. 'Non-Debug Files' configuration.  Therefore, by executing MacApp's startup file
  41. so MABuildDefaults is setup up correctly, issuing the command:
  42.  
  43. mabuild yourprogram
  44.  
  45. while in the directory where your sources and make file are found will create a
  46. sub-folder by the name '.Debug Files'.  This is where MABuild will put the
  47. object files and executable.  For a non-debug you simply have to say:
  48.  
  49. mabuild -nodebug yourprogram
  50.  
  51. and another folder will be created with the name '.Non-Debug Files' which will
  52. contain your optimized object files and executable.
  53.  
  54. By looking at MABuildDefaults you can see that if you wanted to generate debug
  55. object files with symbols (for Sade or some other tool which uses sym files)
  56. you could say:
  57.  
  58. mabuild -sym yourprogram
  59.  
  60. and a seperate sub-folder with the name '.SADE Debug Files' would be created.
  61.  
  62. If you wanted a configuration that is not covered by the supplied defaults, for
  63. example debug with symbols but with performance tools off, you can "override"
  64. the defaults and rename the flags to your own name such as:
  65.  
  66. Set MABuildDefaults "{MaBuildDefaults} ∂
  67.    -Sym∂
  68.    -NoPerform∂
  69.    -RenameFlag NmDbInUnRaTrTeSm 'Sade'"
  70.  
  71. Notice that the flags are different than the default NmDbInUnPeRaTrTeSm (the Pe
  72. is missing).  Now by specifying:
  73.  
  74. mabuild yourprogram
  75.  
  76. the default build will be YOUR default build and a sub-folder will be created
  77. for the files with the name '.Sade'.
  78.  
  79. I hope this clears up some of the mysteries of mabuild for you.
  80.  
  81. Lonnie Millett
  82. Apple Computer
  83.  
  84.  
  85.